import { _decorator, Component, Node } from "cc";
const { ccclass, property } = _decorator;

@ccclass("AutoRelease")
export class AutoRelease extends Component {

    @property resUrl = "";

    start () {
        // Your initialization goes here.
    }

    onDestroy () {
        window.ResMgr.ReleaseInstance(this.resUrl);
    }
}
